BUILD_DIR = ./build
DEST_DIR = ./bin
DEST_EXE_NAME = demo4

all:build
	cd $(BUILD_DIR) && make -j4
run:
	#cd $(BUILD_DIR);./$(DEST_EXE_NAME) $1 $2
test:
	cd $(BUILD_DIR) && cmake ../src && make -j4 && make test
inst:
	cd $(BUILD_DIR) && make install
pack:
	#生成二进制安装包
	cd $(BUILD_DIR);cpack -C CPackConfig.cmake
	#生成源码安装包
	#cpack -C CPackSourceConfig.cmake
clean:
	rm $(BUILD_DIR) -rf
build:
	mkdir $(BUILD_DIR); cd $(BUILD_DIR) && cmake ../src

